package cate.game.role.note.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBRole;
import cate.game.role.Role;
import cate.game.role.note.RoleNote;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "主角笔记本の返回")
public class NoteResp implements MsgOutput {

    @NoteField(value = "笔记本数据")
    public RoleNote data;

    public NoteResp(){}

    public NoteResp(Role role) {
        this.data = role.getNote();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBRole.NOTE_RESP;
    }
}
